Skip to content

Feat: numpy array parameters, step 2: warnings and division (#220) - #264

Merged
b-re-w merged 1 commit into
developfrom
feat/tp-numpy2
Oct 24, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tp-numpy2

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 24, 2026

Copy link
Copy Markdown
Member

Closes #220

Float / // % and impure + - * on numpy-element values compile with numpy scalar semantics (divmod port, inf/nan on division by zero); pure functions deopt on an FP exception so the interpreter warns; impure functions emit numpy's RuntimeWarning text via PyErr_WarnExplicit with the real file, line and warningregistry. nbody advance/energy with NDArray params compile and match results, types and warnings. int64 element + - * // % in impure functions stays on the object path (conservative rule).

Red: 23 of 59 test_buffer_numpy.py failed before. Disabling the compiled warning emit fails 13 tests. Local 3.15t full suite: 1321 passed, 3 skipped. Benchmark compiled set identical to develop (benchmarks use lists, not numpy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant